<% if user?(@user) %>
<% content_for :sidebar do %>
<ul>
	<li><%= link_to "Ver", :action => "show", :id => @user.id %> meu profile</li>
</ul>
<% end %>
<% end %>

<h3>Editando meus dados</h3>
<ul class="options">
	<%= item_link "Profile", :id => @user.id, :subpage => "profile" %>
	<%= item_link "Senha", :id => @user.id, :subpage => "password" %>
	<%= item_link "Foto", :id => @user.id, :type => "user", :subpage => "image" %>
</ul>

<%= render_subpage :image => {:template => "images/new", :filter => method(:strip_head)} %>